package org.example.SingletonPattern;

/**
 * 单例模式的实现方式: 饿汉式
 */
public class Singleton3 {
    private static Singleton3 instance = new Singleton3();
    private Singleton3(){}
    public static Singleton3 getInstance() {
        return instance;
    }  
}